Skip to content

Conversation

Quexington
Copy link
Contributor

This PR adds support for Enums to the streamable framework.

In order to support an Enum in your streamable class you must decorate it with the streamable_enum decorator and specify a proxy streamable object to use for serializing the enum's values. Once you've done this, the object can be used in a streamble object.

@Quexington Quexington requested a review from a team as a code owner August 21, 2025 22:05
@Quexington Quexington added the Added Required label for PR that categorizes merge commit message as "Added" for changelog label Aug 21, 2025
Copy link
Contributor

@altendky altendky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

File Coverage Missing Lines
chia/util/streamable.py 95.0% lines 447
Total Missing Coverage
72 lines Unknown 98%

@pmaslana pmaslana merged commit fb05d17 into main Aug 26, 2025
533 of 537 checks passed
@pmaslana pmaslana deleted the quex.add_enum_to_streamable branch August 26, 2025 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Added Required label for PR that categorizes merge commit message as "Added" for changelog coverage-diff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants